﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NovaSystem.Master" AutoEventWireup="true" CodeBehind="wfOrdenServicio.aspx.cs" Inherits="NovaSystem.InterfazUsuarioWeb.Ventas.wfOrdenServicio" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" class="tabla" width="760px" align="center">
<tr>
<td>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <table>
        <tr>
        <td>Nro Solicitud</td>
        <td><asp:TextBox runat="server" ID="txtNroSolicitud" Width="90px" ReadOnly="True"></asp:TextBox></td>
        <td>Concepto</td>
        <td colspan="3"><asp:TextBox ID="txtConcepto" runat="server" Width="364px"></asp:TextBox></td>
        </tr>
        <tr>
        <td>Contratante</td>
        <td><asp:TextBox runat="server" ID="txtRutContratante" Width="90px"></asp:TextBox></td>
        <td><asp:ImageButton runat="server" ID="btnBuscarCliente" ImageUrl="~/img/Find.png" /></td>
        <td><asp:TextBox runat="server" ID="txtNombreContratante" Width="246px"></asp:TextBox></td>
        </tr>
        <tr>
        <td>Beneficiario</td>
        <td><asp:TextBox runat="server" ID="txtRutBeneficiario" Width="90px"></asp:TextBox></td>
        <td><asp:ImageButton runat="server" ID="btnBuscarCliente0" ImageUrl="~/img/Find.png" /></td>
        <td><asp:TextBox runat="server" ID="txtNombreBeneficiario" Width="245px"></asp:TextBox></td>
        </tr>
        </table>
        <table>
        <tr>
        <td style="padding-right:15px">Dirección</td>
        <td><asp:TextBox runat="server" ID="txtDireccion" Width="342px"></asp:TextBox></td>
        <td>Ciudad</td>
        <td><asp:TextBox runat="server" ID="txtCiudad"></asp:TextBox></td>
        </tr>
        </table>
</td>
</tr>
<tr>
<td background="../img/separador.png">
    <asp:TextBox ID="TextBox2" runat="server" Height="23px" Width="16px" 
        style="visibility:hidden"></asp:TextBox>
    </td>
</tr>
<tr>
<td background="../img/separadormenu.png" class="tituloTabla">Detalle
    <asp:TextBox ID="txtSeparadorDet" runat="server" Height="16px" Width="16px" 
        style="visibility:hidden"></asp:TextBox>
    </td>
</tr>
<tr>
<td>
    <table>
        <tr>
        <td colspan="2">Producto</td>
        <td>Descripción</td>
        <td>Cantidad</td>
        <td>Precio </td>
        <td>Total</td>
        
        </tr>
        <tr>
        <td><asp:TextBox runat="server" ID="txtProducto" Width="100px"></asp:TextBox>
            </td>
        <td><asp:ImageButton runat="server" ID="btnBuscarProducto" 
                ImageUrl="~/img/Find.png"  /></td>
        <td>
                    <asp:TextBox runat="server" ID="txtDescripcion" Width="180px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvDescripcion" runat="server" 
                        ControlToValidate="txtDescripcion" ErrorMessage="Ingrese Descripción Producto" 
                        ValidationGroup="Agregar">*</asp:RequiredFieldValidator>
                    <asp:HiddenField ID="hfIdProducto" runat="server" />
            </td>
        <td><asp:TextBox runat="server" ID="txtCantidad" Width="43px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvCantidad" runat="server" 
                ControlToValidate="txtCantidad" ErrorMessage="Ingrese Cantidad" 
                ValidationGroup="Agregar">*</asp:RequiredFieldValidator>
            <asp:RangeValidator ID="rvCantidad" runat="server" 
                ControlToValidate="txtCantidad" ErrorMessage="Cantidad No valida" 
                MaximumValue="999999999" MinimumValue="1" Type="Integer" 
                ValidationGroup="Agregar">*</asp:RangeValidator>
            </td>
        <td><asp:TextBox runat="server" ID="txtPrecio" Width="55px" 
                CssClass="textBoxNumerico"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvPrecio" runat="server" 
                ControlToValidate="txtPrecio" ErrorMessage="Ingrese Precio" 
                ValidationGroup="Agregar">*</asp:RequiredFieldValidator>
            <asp:RangeValidator ID="rvPrecio" runat="server" ControlToValidate="txtPrecio" 
                ErrorMessage="Precio No valida" MaximumValue="999999999" 
                MinimumValue="0,000001" Type="Double" ValidationGroup="Agregar">*</asp:RangeValidator>
            </td>
        <td><asp:TextBox runat="server" ID="txtTotal" ReadOnly="true" Width="74px" 
                CssClass="textBoxNumerico"></asp:TextBox></td>
        <td><asp:Button runat="server" ID="btnAgregar" Text="Agregar" Width="58px" 
                 ValidationGroup="Agregar" /></td>
        </tr>
        <tr>
            <td colspan="7">
       
               
               
                     <div runat="server" id="divDetalleHeader">
                <table class="mGrid">
                <tr>
                <th>Producto</th>
                <th>Descripcion</th>
                <th>Cantidad</th>
                <th>Precio</th>
                <th>Unidad</th>
                <th>Total</th>
                <th>Precio Unit.</th>
                </tr>
                <tr>
                <td align="center" colspan="7">No existen registros en el detalle</td>
                </tr>
                </table>
                </div>
                    <table>
                    <tr>
                    <td colspan="3">
                        <asp:GridView runat="server" ID="gvDetalle" CssClass="mGrid" Width="738px" >
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/img/Delete.png" 
                                    CommandArgument="<%# Container.DataItemIndex %>" />
                                    </ItemTemplate>
                                    <ItemStyle Width="20px" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                    </tr>
                    <tr>
                    <td>Observaciones</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    </tr>
                    <tr>
                    <td rowspan="2">
                        <asp:TextBox runat="server" ID="txtObservacion" 
                            Width="491px" Height="46px" TextMode="MultiLine"></asp:TextBox></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    </tr>
                    <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    </tr>
                    
                    <tr>
                    <td></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    </tr>
                    </table>
                        
     
            </td>
        </tr>
        
        <tr>
        <td colspan="10" align="center"><asp:Button runat="server" ID="btnGrabar" 
                Text="Grabar"  ValidationGroup="Grabar" /> 
            &nbsp;&nbsp; 
            <asp:Button runat="server" ID="btnLimpiar" Text="Limpiar" />
        </td>
        </tr>
        </table>



</td>
</tr>
</table>
</asp:Content>
